<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

?>

<div style="margin-left: 0px;" class="bar_240i" >
    <div style="" class="title_240i">
        <h1 class="h1i">
            Ranks
        </h1>
    </div>
    <div class="content240i">
        <ul class="navi" style="">
            <?php
            $vote_key=isset($_REQUEST["vote"])?$vote_key=$_REQUEST["vote"]:null;
            $dt=voteModule::getVotes();
            if(isset($dt)){
            foreach ($dt as $row){
                if(!isset($vote_key)){
                   $vote_key= $row["key"];
                }
            ?>
            <li><a href="?JO_unit=005_Rank_artist&vote=<?=$row["key"]?>" <?=($vote_key==$row["key"]?"class='item_selected'":"")?>><?=$row["subject"]?></a></li>
            <?php
                
            }}
            else{
            ?>
            <li><a href="#i">Không có đợt bình chọn nào</a></li>
            <?
            }
            ?>
            
        </ul>
    </div>
</div>